package dart

class Person {
	String name;
	String primaryColor = "#FFFFFF";
	String secondaryColor = "black";
	String displayName;

	Boolean enabled = true;

	static constraints = {
		name(size: 1..255, blank: false, unique: true)
		displayName(size: 1..255, blank: false)
	}

	String style() {
		return "background-color: " + primaryColor + "; color: " + secondaryColor + ";"
	}
}
